package com.houtai.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

/**
 * Created by lizhun on 2017/7/27.
 */
@ApiModel(value = "分页基本参数", description = "分页基本参数")
public class Page {


    /**
     * 页数
     */
    @NotNull(message = "页数不能为空")
    @ApiModelProperty(value = "页数", name = "current_page", example = "1")
    private int current_page = 1;

    /**
     * 每页条数
     */
    @NotNull(message = "每页条数不能为空")
    @ApiModelProperty(value = "每页条数", name = "page_size", example = "10")
    private int page_size = 10;


    public int getCurrent_page() {
        return current_page;
    }

    public void setCurrent_page(int current_page) {
        this.current_page = current_page;
    }

    public int getPage_size() {
        return page_size;
    }

    public void setPage_size(int page_size) {
        this.page_size = page_size;
    }


}
